From 4756442250b7beecee6dbda36820a9fbdf6aea45 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 27 Jun 2023 20:58:04 +0100 Subject: Store function pointer in closure --- ....shedlang.compiler.testing.snapshots.Snapshotter)].expected | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:freeVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:freeVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:freeVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index f8fe4197..22135274 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:freeVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:freeVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -15,7 +15,7 @@ Function[2]: - func[2] sig=1 Code[2]: - func[1] size=23 - - func[2] size=16 + - func[2] size=27 Custom: - name: "name" - func[0] @@ -33,8 +33,9 @@ Custom: - 2: F func=2 [ binding=global vis=default ] Custom: - name: "reloc.CODE" - - relocations for section: 3 (Code) [1] + - relocations for section: 3 (Code) [2] - R_WASM_FUNCTION_INDEX_LEB offset=0x000028(file=0x0000a9) symbol=0 + - R_WASM_TABLE_INDEX_SLEB offset=0x000032(file=0x0000b3) symbol=1 Code Disassembly: @@ -56,4 +57,7 @@ Code Disassembly: 0000a8: 10 80 80 80 80 00 | call 0 0000ae: 21 00 | local.set 0 0000b0: 20 00 | local.get 0 - 0000b2: 0b | end \ No newline at end of file + 0000b2: 41 80 80 80 80 00 | i32.const 0 + 0000b8: 36 02 00 | i32.store 2 0 + 0000bb: 20 00 | local.get 0 + 0000bd: 0b | end \ No newline at end of file -- cgit v1.2.3